package com.ftg.learn.service;

import dev.langchain4j.community.model.dashscope.WanxImageModel;
import dev.langchain4j.data.image.Image;
import dev.langchain4j.model.output.Response;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import org.springframework.beans.factory.annotation.Autowired;

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT, chatModel = "openAiChatModel")
public interface AiServiceKjx {



    @SystemMessage("你是一位专业的老师,姓名为zane，只回答与学习相关的问题。输出限制：对于其他领域的问题禁止回答，直接返回'抱歉，我只能回答学习相关的问题。'")
    @UserMessage("请回答以下学习问题：{{question}}")
    String chat(@V("question") String question);

}